/*
 * @Date: 2022-08-03 16:14:06
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-09-15 14:38:28
 * @FilePath: \archives-fe\src\routes\modules\appraisalAndDisposition.tsx
 */
import { lazy } from 'react';
import Layout from '@/layout';
import lazyLoad from '../components/lazyLoad';
import { AppstoreOutlined } from '@ant-design/icons';

export const AppraisalAndDispositionPending = lazy(
  () =>
    import(
      /* webpackChunkName: "AppraisalAndDisposition" */ '@/view/appraisalAndDisposition/PendingList/PendingListMain'
    )
);

export const AppraisalAndDispositionAppAndDis = lazy(
  () =>
    import(
      /* webpackChunkName: "AppraisalAndDisposition" */ '@/view/appraisalAndDisposition/AppraisalPlan/AppraisalAndDispositionMain'
    )
);
export const AppraisalAndDispositionMgt = lazy(
  () =>
    import(
      /* webpackChunkName: "AppraisalAndDisposition" */ '@/view/appraisalAndDisposition/AppraisalManagement/AppraisalManagementMain'
    )
);
export const AppraisalAndDispositionAudit = lazy(
  () =>
    import(
      /* webpackChunkName: "AppraisalAndDisposition" */ '@/view/appraisalAndDisposition/AppraisalAudit/AppraisalAuditMain'
    )
);
export const AppraisalAndDispositionDestruction = lazy(
  () =>
    import(
      /* webpackChunkName: "System" */ '@/view/appraisalAndDisposition/Destruction/DestructionMain'
    )
);

const appraisalAndDispositionRoutes: any[] = [
  {
    path: '/appraisalAndDisposition',
    element: <Layout />,
    icon: <AppstoreOutlined />,
    meta: {
      title: '档案鉴定与处置'
    },
    children: [
      {
        path: 'plan',
        element: lazyLoad(AppraisalAndDispositionAppAndDis),
        meta: {
          title: '鉴定与处置计划'
        }
      },
      {
        path: 'pending',
        element: lazyLoad(AppraisalAndDispositionPending),
        meta: {
          title: '待处置列表'
        }
      },

      {
        path: 'mgt',
        element: lazyLoad(AppraisalAndDispositionMgt),
        meta: {
          title: '档案鉴定批次管理'
        }
      },
      {
        path: 'audit',
        element: lazyLoad(AppraisalAndDispositionAudit),
        meta: {
          title: '档案鉴定审核'
        }
      },
      {
        path: 'destroy',
        element: lazyLoad(AppraisalAndDispositionDestruction),
        meta: {
          title: '档案销毁审核'
        }
      }
    ]
  }
];

export default appraisalAndDispositionRoutes;
